export default (state = {name: 'zhangsan', age: '30'}, action) => {
    switch (action.type) {
        case 'newName':
            return {
                ...state,
                name: action.name
            }
            default:
                return state
    }
}